const policiesModel = require('./policiesModel');
const usersModel = require('./usersModel');
const classesModel = require('./classesModel');
const outlinesModel = require('./outlinesModel');
const itemsModel = require('./itemsModel');
const papersModel = require('./papersModel');
const answersModel = require('./answersModel');
const menusModel = require('./menusModel');

exports.plugin = {
  name: 'indexModel',
  async register(server) {
    await server.register([
      policiesModel,
      usersModel,
      classesModel,
      outlinesModel,
      itemsModel,
      papersModel,
      answersModel,
      menusModel,
    ]);
  },
};
